-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rework evaluation export #127
Conversation
normal sum would return Union[decimal.Decimal, Literal[0]] which is unwanted
…rations.list TODO sell.fees and buy.fees are currently not, but should be, considered for tax calculation
…it/withdrawal matching fails (6ea275f)
credits to @Griffsano
- RENAME class methods - UPDATE comments - REFACTOR code - CHANGE Keep track of home fiat balance
prices from csv are only calculated for exactly one buy/sell pair. merging operations makes sure, that there is only one buy/sell pair
this commit will be removed as soon as i get back to work
I don't know why this is throwing just now, but it does: Line 334 in f076d8e
|
I am also getting many |
Buys and sells always come in a pair (a trade). To determine the buy cost of bought coins, it is necessary to know the "sell"-part of the trade: the sell value is the buying cost of these coins. This is important because (1) the bought coins value might be differ from the sell value and (2) the tax calculation requires you to use the real buying costs for tax calculation (see BMF draft) Example why is is important:
You can see, that I gained 99 €. This calculation is only possible, when Buy and Sell pairs got "matched" and the real buying cost of the coin (1 €) is used for tax calculation (100 € (buy value of the sell-trade) - 1 € (sell value of the buy-trade) = 99 €). If Cointaxman can not match the Buy/sell pairs it only sees
Stupid calculation of the gain calculates 100 € - 100 € = 0 € gain. This is what Cointaxman is currently doing for you, hence the warning. It does not realized which Buys and Sells form a trade-pair. Now, how can we fix this? The matching is done in To solve this. We have to extend the functionality of |
fixed as part of #130, already merged into the branch |
…herit UnrealizedSellReportEntry from SellReportEntry
…ework-evaluation-export
The tax evaluation and export is currently under major rework. Most of the tax evaluation is done, but could require some more explanatory comments. The export is basically done, but I am still improving the formatting etc.
I'd love to have a helping hand, reviewing the changes, pinpointing code which could be better and so on....
If you have the time, I'd really appreciate it!
@Griffsano @scientes @jhoogstraat
check against
Related #104